var db = iClass.db;
var Comment = iClass.set("Comment", function(info) {
	this._id = Comment.getUuid();
	this.setInfo(info);
	if (!Comment.CommenterTypeMap.hasPro(info.type)) {
		Throw("评论者类型错误");
	}
	this.type = info.type; //评论者的类型（类名），目前有两种：User/Admin

	if (!info.commenter_id) {
		Throw("评论的评论者不可为空");
	}
	this.commenter_id = info.commenter_id; //评论者ID

	this.parent_id = info.parent_id || ""; //父级评论对象（回复某条评论）

	if (!info.blog_id) {
		Throw("评论所属的文章不可为空");
	}
	this.blog_id = info.blog_id; //所属文章ID

	this.like_num = []; //赞
	this.unlike_num = []; //踩
	this.hide_num = []; //隐藏
	this.create_time = +new Date;
	db.insert(this.dbname, this);
});
Comment.CommenterTypeMap = {
	"User": iClass.get("User"),
	"Admin": iClass.get("Admin")
};